package com.cq.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cq.teacher.mapper.TeacherDailyMapper;
import com.cq.teacher.domain.TeacherDaily;
import com.cq.teacher.service.ITeacherDailyService;

/**
 * 老师日报Service业务层处理
 * 
 * @author cq
 * @date 2024-01-06
 */
@Service
public class TeacherDailyServiceImpl implements ITeacherDailyService 
{
    @Autowired
    private TeacherDailyMapper teacherDailyMapper;

    /**
     * 查询老师日报
     * 
     * @param id 老师日报主键
     * @return 老师日报
     */
    @Override
    public TeacherDaily selectTeacherDailyById(Long id)
    {
        return teacherDailyMapper.selectTeacherDailyById(id);
    }

    /**
     * 查询老师日报列表
     * 
     * @param teacherDaily 老师日报
     * @return 老师日报
     */
    @Override
    public List<TeacherDaily> selectTeacherDailyList(TeacherDaily teacherDaily)
    {
        return teacherDailyMapper.selectTeacherDailyList(teacherDaily);
    }

    /**
     * 新增老师日报
     * 
     * @param teacherDaily 老师日报
     * @return 结果
     */
    @Override
    public int insertTeacherDaily(TeacherDaily teacherDaily)
    {
        return teacherDailyMapper.insertTeacherDaily(teacherDaily);
    }

    /**
     * 修改老师日报
     * 
     * @param teacherDaily 老师日报
     * @return 结果
     */
    @Override
    public int updateTeacherDaily(TeacherDaily teacherDaily)
    {
        return teacherDailyMapper.updateTeacherDaily(teacherDaily);
    }

    /**
     * 批量删除老师日报
     * 
     * @param ids 需要删除的老师日报主键
     * @return 结果
     */
    @Override
    public int deleteTeacherDailyByIds(Long[] ids)
    {
        return teacherDailyMapper.deleteTeacherDailyByIds(ids);
    }

    /**
     * 删除老师日报信息
     * 
     * @param id 老师日报主键
     * @return 结果
     */
    @Override
    public int deleteTeacherDailyById(Long id)
    {
        return teacherDailyMapper.deleteTeacherDailyById(id);
    }
}
